﻿
using System;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using Abp.AutoMapper;
using Abp.Runtime.Validation;
using Abp.Extensions;
using LeadThing.AbpZeroTemplate.SupportingSystems;
using LeadThing.AbpZeroTemplate.Files.Dtos;

namespace LeadThing.AbpZeroTemplate.SupportingSystems.Dtos
{
    /// <summary>
    /// 配套制度编辑用Dto
    /// </summary>
    [AutoMap(typeof(SupportingSystem))]
    public class SupportingSystemEditDto
    {

        /// <summary>
        ///   主键Id
        /// </summary>
        [DisplayName("主键Id")]
        public long? Id { get; set; }

        /// <summary>
        /// 文件ID
        /// </summary>
        [DisplayName("文件ID")]
        [Required]
        public int FileID { get; set; }

        /// <summary>
        /// 镇
        /// </summary>
        [DisplayName("镇")]
        [Required]
        public int TownID { get; set; }

        /// <summary>
        /// 区
        /// </summary>
        [DisplayName("区")]
        [Required]
        public int AreaID { get; set; }

        /// <summary>
        /// 村庄
        /// </summary>
        [DisplayName("村庄")]
        [Required]
        public int VillageID { get; set; }

        /// <summary>
        /// 制度名称
        /// </summary>
        [DisplayName("制度名称")]
        [Required]
        [MaxLength(100)]
        public string SystemTitle { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        [DisplayName("备注")]
        [MaxLength(500)]
        public string Remarks { get; set; }

    }
}
